package com.msb.business.controller;

import com.msb.business.api.mq.topic.DemoTopic;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "mq测试")
@RestController
@RequestMapping
@Slf4j
public class MqController {
    @Resource
    private DemoTopic demoTopic;

    @GetMapping("mq")
    public String mq(String message) {
        demoTopic.product(message);
        return "ok";
    }
}
